<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('push/sendlog/flexigrid') ?>',
                    colModel: [

						{display: '<?= translate('PUSH_STATUS') ?>', name: 'status', width: 50},    
						{display: '<?= translate('PUSH_PLATFORM') ?>', name: 'platform', width: 120, process: formatSearch},	
						{display: '<?= translate('PUSH_CHANNEL') ?>', name: 'channel', width: 120, process: formatSearch},	
						{display: '<?= translate('PUSH_AREA') ?>', name: 'area', width: 120, process: formatSearch},
						{display: '<?= translate('PUSH_ROLEID') ?>', name: 'roleid', width: 120, process: formatSearch},	
						{display: '<?= translate('PUSH_ROLENAME') ?>', name: 'role_name', width: 120,},	
						{display: '<?= translate('PUSH_DEVICE_TOKEN') ?>', name: 'token', width: 500},
						{display: '<?= translate('PUSH_CONTENT') ?>', name: 'content', width: 500,},							
						
						{display: '<?= translate('MANAGE') ?>', name: 'id', width: 100, sortable: false, process: formatOp}
                    ],
                    buttons: [						
						//{ name: 'add', displayname: "<?=translate('SEND')?>", title: "<?=translate('SEND')?>", bclass: 'add', onpress: multi },
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete', onpress: multi},                        
                        
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                	//edit_url: '<?= site_url("push/sendlog/edit/") ?>',
                	add_url: '<?= site_url("push/sendlog/add/") ?>',
                    del_url: '<?= site_url("push/sendlog/del/") ?>',
                    multi_url: '<?= site_url("push/sendlog/multi/") ?>'
                });
            });
        </script>
    </body>
</html>